gtkwindow: ignore default size if there is a size request
authorOlivier Fourdan <ofourdan@redhat.com>
Wed, 16 Mar 2016 13:19:14 +0000 (14:19 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Mar 2016 02:40:42 +0000 (22:40 -0400)
commit3e3d29f7b73381dd328e5213e0dca04d3e4f8048
tree9e85360e64411604cc5eaeafbe1ee43cf5c41cb6
parent4ddd29d8c06ff6ac7fe52d1b04591a9ccc1ac8dd
gtkwindow: ignore default size if there is a size request

Some applications set both a default size on their gtk window and a size
request on the corresponding gtk widget.

Until now, the default size was ignored for fixed size windows, so this
had no effect and remained unnoticed, but with the recent change for
client-side decorations, the default size is now used even for fixed size
windows, which can cause the resulting fixed size window to be much
smaller than expected with the size request.

For fixed size windows, if we have both a size request and a default
size set, prefer the size request as before.

https://bugzilla.gnome.org/show_bug.cgi?id=763749
gtk/gtkwindow.c